package com.book.system.dao;

import com.book.system.entity.User;

import java.util.List;
import java.util.Map;

/**
 * @author ：aaa
 * @date ：Created in 2024/4/27 11:44
 */
public class UserDao {

    /**
     * 登录方法
     *
     * @param user 用户实体类
     * @return list
     */
    public List<Map<String, Object>> login(User user) {
        String sql = "select * from user where username = ? and password = ?";
        List<Map<String, Object>> list = BaseDao.executeQuery(sql, user.getUsername(), user.getPassword());
        return list;
    }


}